package ru.study.thinkin.chapter12;

public class TestException {
	public static Object check(Object t) {		
		if (t== null) {
			throw new NullPointerException("t без  ссылки");
		}		
		return "123";
	}
	
	public static void main(String[] args) {
		try{
			Object obj = check(null);
		}catch(NullPointerException e) {
			e.printStackTrace(); 
		} catch(Exception e) {
			e.printStackTrace();
		}
		finally{
			System.out.println("-=-=");
		}
		
		
		
	}

}
